﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看投票结果 - {config.webname}</title>
<style type="text/css">
*{ padding:0; margin:0; font-family:"Microsoft YaHei"; }
.ltable{ width:100%; border:1px solid #eee; font-size:12px; background:#fafafa; }
	.ltable td{ padding:8px 5px; border-bottom:1px solid #eee; line-height:1.5em; color:#666; }
.progress-wrap{ position:relative; border:1px solid #417F41; height:20px; }
.progress-box{ height:100%; background:#52A152; }
</style>
</head>

<body>
<h1>{model.title}</h1>
<div style="height:30px;"></div>
<hr />
<div style="height:30px;"></div>

<%if(model.options!=null)%>
<%set int inum=1%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <%foreach(EazyCMS.Web.Plugin.Vote.Model.vote_option modelt in model.options)%>
  <%csharp%>
    string percent="0";
    if(model.vote_count>0){
      percent=(double.Parse(modelt.vote_num.ToString())/double.Parse(model.vote_count.ToString())*100).ToString("0");
    }
  <%/csharp%>
  <tr>
    <td width="5%" align="center">{inum}</td>
    <td width="40%">{modelt.title}</td>
    <td width="5%" align="center">{percent}%</td>
    <td width="45%">
      <div class="progress-wrap">
        <div class="progress-box" style="width:{percent}%"></div>
      </div>
    </td>
    <td width="5%" align="center">{modelt.vote_num} 票</td>
  </tr>
  <%set inum=inum+1%>
  <%/foreach%>
</table>
<%/if%>

</body>
</html>
